package com.lf.web.service.system.role;

import com.lf.data.Cluster;
import com.lf.web.service.ServiceSupport;
import org.apache.log4j.Logger;

import java.util.List;

public class RoleListService extends ServiceSupport {

    private static final Logger LOGGER = Logger.getLogger(RoleListService.class);
    private RoleDAO roledao;

    public void setRoledao(RoleDAO roledao) {
        this.roledao = roledao;
    }

    public String execute() {
        List<Cluster> roles = roledao.find(null, null, null);
        context.put("roles", roles);
        return LIST;
    }
}
